﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="显示roominfo.aspx.cs" Inherits="linkDATABASE.扩展.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelConnectionString %>" SelectCommand="SELECT * FROM [Roominfo]"></asp:SqlDataSource>
        </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="房号" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="房号" HeaderText="房号" ReadOnly="True" SortExpression="房号" />
                <asp:BoundField DataField="房形" HeaderText="房形" SortExpression="房形" />
                <asp:BoundField DataField="房态" HeaderText="房态" SortExpression="房态" />
                <asp:BoundField DataField="预订状态" HeaderText="预订状态" SortExpression="预订状态" />
                <asp:BoundField DataField="床位数" HeaderText="床位数" SortExpression="床位数" />
                <asp:BoundField DataField="所处位置" HeaderText="所处位置" SortExpression="所处位置" />
            </Columns>
        </asp:GridView>
    </form>
</body>
</html>
